const { defineConfig } = require('@vue/cli-service')
// @vue/cli-service文档 https://cli.vuejs.org/zh/config/

const workbenchPort = 1100
const host = 'localhost'
const port = 1122

module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    port,
    // 配置允许基座跨域加载资源
    headers: {
      'Access-Control-Allow-Origin': `http://${host}:${workbenchPort}`,
      'Access-Control-Allow-Credentials': true,
    },
  },
})
